{block name="circle_layout"}
	{include file="common:common_layout"}
{/block}
{extend name="common/layout" /}
{block name="style"}{/block}
{block name="content"}
<div class="base-layout">
    <div class="mainbox">
        <form method="post" action="<?php echo url('circle/manageinform/inform');?>?c_id=<?php echo $c_id;?>" id="inform_form" onsubmit="ajaxpost('inform_form', '<?php echo url('circle/manageinform/inform');?>?c_id=<?php echo $c_id;?>', '', 'onerror');">
            {include file="circle:manage:top" /}
            
            <table class="base-table-style">
                <thead>
                <tr>
                    <th class="w30"></th>
                    <th class="tl">举报详情</th>
                    <th class="w120">举报人</th>
                    <th class="w120">处理</th>
                </tr>
                <tr>
                    <td class="tc"><input id="all" class="checkall" type="checkbox" /></td>
                    <td colspan="20"><label for="all" class="handle-btn"><i class="ac0"></i>全选</label>
                        <a href="javascript:void(0);" class="handle-btn" nctype="batchHandle"><i class="ac10"></i>处理</a></td>
                </tr>
                </thead>
                <tbody>
                <?php if(!empty($inform_list)){?>
                <?php foreach (($inform_list) as $val){?>
                <tr>
                    <td><input type="checkbox" class="checkitem" name="i_id[]" value="<?php echo $val['inform_id'];?>" /></td>
                    <td class="tl"><dl class="inform"><dt><strong>举报链接：</strong><a href="<?php echo $val['url'];?>" target="_blank"><?php echo $val['title'];?></a></dt>
                        <dd><strong>举报内容：</strong><span class="tip" title="<?php echo $val['inform_content'];?>"><?php echo $val['inform_content'];?></span></dd></dl></td>
                    <td><?php echo $val['member_name'];?></td>
                    <td>奖惩：
                        <select name="i_rewards[<?php echo $val['inform_id'];?>]">
                            <option value="3">+3</option>
                            <option value="2">+2</option>
                            <option value="1">+1</option>
                            <option value="0" selected="selected">不奖惩</option>
                            <option value="-1">-1</option>
                            <option value="-2">-2</option>
                            <option value="-3">-3</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td colspan="4" class="inform-note">
                        <strong>备注留言：<?php echo $val['inform_opresult'];?></strong><input type="text" class="text w600" placeholder="可以在这里输入对此次举报的处理原因、结果或其它意见给被举报人" name="i_result[<?php echo $val['inform_id'];?>]" />            </td>
                </tr>
                <?php }?>
                <?php }else{?>
                <tr>
                    <td colspan="20" class="noborder"><p class="no-record">没有符合条件的记录</p></td>
                </tr>
                <?php }?>
                </tbody>
                <?php if(!empty($inform_list)){?>
                <tfoot>
                <tr>
                    <th class="tc"><input id="all" class="checkall" type="checkbox" /></th>
                    <th colspan="20"><label for="all" class="handle-btn"><i class="ac0"></i>全选</label>
                        <a href="javascript:void(0);" class="handle-btn" nctype="batchHandle"><i class="ac10"></i>处理</a> </th>
                </tr>
                <tr>
                    <td colspan="20"><div class="pagination"><?php echo $show_page;?></div></td>
                </tr>
                </tfoot>
                <?php }?>
            </table>
        </form>
    </div>
    <div class="sidebar">
        {include file="circle:manage:sidebar" /}

    </div>
</div>
<script src="__CIRCLE_RESOURCE__/js/circle_manage.js"></script>
<script>
    $(function(){
        $('a[nctype="batchHandle"]').click(function(){
            if($('.checkitem:checked').length == 0){    // no choice
                return false;
            }
            $('#inform_form').submit();
        });
    });
    //Ajax提示
    $(function(){
        $('.tip').poshytip({
            className: 'tip-yellowsimple',
            showTimeout: 1,
            alignTo: 'target',
            alignX: 'center',
            alignY: 'top',
            offsetY: 5,
            allowTipHover: false
        });
    });
</script>
{/block}